import request from '@/common/request.js';

// 个人信息
export function getLeaveListApi(params) {
	return request({
		url: '/api/sc/leave/list/searchList',
		data: params
	})
}

 //请假详情byid
 export function getLeaveInfoByIdApi(leaveId) {
	 return request({
	 	url: `/api/sc/leave/info/detailById/${leaveId}`,
	 })
 }
 
 
 //学生
 //提交请假申请
 export function newLeaveApi(params) {
	 return request({
	 	url: '/api/sc/leave/add/addLeave',
		method: 'POST',
	 	data: params
	 })
 }
 
 
 //教师
 //审批请假申请
 export function reviewLeaveApi(params) {
	 return request({
	 	url: '/api/sc/leave/approve/approveLeave',
	 	method: 'POST',
	 	data: params
	 })
 }